package com.lxj.student_security.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Permission  implements GrantedAuthority {
    private Integer id;
    private Integer pid;
    private String name;
    private String value;
    private String icon;
    private Integer type;
    private String src;
    private Integer status;
    private String createTime;
    private String sort;
    private Integer pageNum;
    private Integer pageSize;
    @Override
    public String getAuthority() {
        return this.value;
    }
}